﻿//
// Created by francklinson on 2021/3/13.
//

#include <iostream>

int main()
{
    using namespace std;
    int auks, bats, coots;
    auks = 19.99 + 11.99;
    bats = (int) 19.99 + (int) 11.99;
    coots = int(19.99) + int(11.99);
    cout << "auks = " << auks << endl;
    cout << "bats = " << bats << endl;
    cout << "coots = " << coots << endl;

    char ch = 'z';
    cout << "The code for " << ch << " is " << int(ch) << endl;
    cout << "Yes, the code is ";
    cout << static_cast<int>(ch) << endl; // static_cast 强制类型转换

    return 0;


}